﻿// mysqltest.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "mysql.h"
#include <iostream>
#include "MoneyTableData.h"
#include "mysqlconnpool.h"


int _tmain(int argc, _TCHAR* argv[])
{
	CMysqlConnPool::Instance()->InitPool("127.0.0.1", "root", "123456", "payserver", 3306);
	CMysqlConn* pCMysqlConn = CMysqlConnPool::Instance()->GetAvilibleConn();

	CMoneyTableData* pTableData = new CMoneyTableData;
	pCMysqlConn->QuerySQL("select * from money;", pTableData);
	pTableData->FreeTableData();
	delete pTableData;
	return 0;
}

